package com.czh.auth.api.feign;

import com.czh.auth.api.entity.AuthUserDTO;
import com.czh.auth.api.entity.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author caozaihui
 * @version 1.0
 * @since 2024/9/8 12:23
 */
@FeignClient("community-club-auth")
public interface UserFeignService {
    @PostMapping("/user/getUserInfo")
    ResponseResult<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDto);

    @PostMapping("/user/getUserInfoList")
    ResponseResult<List<AuthUserDTO>> getUserInfoList(@RequestBody List<String> usernameList);
}
